package response

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

type CommonResp struct {
	Status int         `json:"status"`
	Msg    string      `json:"msg"`
	Data   interface{} `json:"data"`
}

func Success(data interface{}, c *gin.Context) {
	c.JSON(http.StatusOK, CommonResp{
		200,
		"data",
		data,
	})
}
